import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({  
    state: {  
        tabBarList: [
			{
				iconPath: "/static/images/home_54.png",
				selectedIconPath: "/static/images/home_54.png",
				text: '首页',
			},
			{
				iconPath: "/static/images/home_51.png",
				selectedIconPath: "/static/images/home_51.png",
				midButton: true,
			},
			{
				iconPath: "/static/images/home_57.png",
				selectedIconPath: "/static/images/home_57.png",
				text: '我的',
			},
		],
		newRules:[
			{name:'admin',value:'管理员'},
			{name:'common',value:'普通人员'},
			{name:'bdjgjxy',value:'标段机构接线员'},
			{name:'supervisor',value:'监理'},
			{name:'xc_personnel',value:'巡查人员'},
			{name:'hc_personnel',value:'核查人员'},
			{name:'hs_personnel',value:'核实人员'},
			{name:'cz_personnel',value:'处置人员'},
		],
		time:null
    }, 
	 getters:{
		 getRules:state=>state.newRules.map(t=>t.name)
	 },
    mutations: {
		
    },
	actions:{
		
	}
})

export default store